<?php

use App\Admin\Controllers\MissionDepositController;
use App\Admin\Controllers\ShareRatioController;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('run-errand', 'RunErrandController');
    $router->resource('school', 'SchoolController');
    $router->resource('faculty', 'FacultyController');
    $router->resource('banner', 'BannerController');
    $router->resource('bulletin', 'BulletinController');
    $router->resource('config', 'ConfigController');
    $router->resource('commission', 'CommissionController');
    $router->resource('admin-user', 'AdminUserController');
    $router->resource('user', 'UserController');
    $router->resource('withdraw-fund', 'WithdrawFundController');
    $router->resource('order', 'OrderController');
    $router->resource('unit-block', 'UnitBlockController');
    $router->resource('proceed-list', 'ProceedListController');
    $router->resource('balance-record', 'BalanceRecordController');
    $router->resource('feedback', 'FeedbackController');
    $router->resource('cancel-order-logs', 'CancelOrderLogController');
    $router->get('mission-deposit', [MissionDepositController::class, 'create']);
    $router->get('share-ratio', [ShareRatioController::class, 'create']);
    //$router->post('mission-deposit', [MissionDepositController::class, 'store']);
});
